package com.example.rbac.uitls;


import io.vavr.collection.List;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
import redis.clients.jedis.JedisPubSub;

public class TestUtils extends JedisPubSub{
    @Override
    public void onPMessage(String pattern, String channel, String message) {
        System.out.println("onPMessage pattern "
                + pattern + " " + channel + " " + message);
    }

    @Override
    public void onPSubscribe(String pattern, int subscribedChannels) {
        System.out.println("onPSubscribe "
                + pattern + " " + subscribedChannels);
    }

    public static void main(String[] args) {
        List<Integer> map = List.of(1, 2, 3, 4).filter(i -> i > 3).map(i -> i * 2);
        map.forEach(m-> System.out.println(m));
    }

}
